<?php
/**
 * Plugin Name: Boot Suggestion
 * Description: Fodboldtool
 * Version: 1.0
 * Author: Henrik Mikkelsen
 * Author URI: http://minside.dk
 */

global $wp_version;

if(!version_compare($wp_version, '3.5', '>='))
{
   die('Plugin needs at least WordPress version 3.5 or higher');
}

if ( !defined( 'BS_DIR' ) ) {
	define( 'BS_DIR', plugin_dir_path( __FILE__ ) );
}
if ( !defined( 'BS_URL' ) ) {
	define( 'BS_URL', plugin_dir_url( __FILE__ ) );
}
if ( !defined( 'BS_ASSETS_URL' ) ) {
	define( 'BS_ASSETS_URL', plugin_dir_url( __FILE__ ).'assets/' );
}

include_once BS_DIR .'classes/admin.php';
include_once BS_DIR .'classes/boot_suggestion.php';
include_once BS_DIR .'classes/boot.php';
include_once BS_DIR .'classes/player.php';
include_once BS_DIR .'classes/club.php';
include_once BS_DIR .'classes/boot_by_player.php';

function bs_plugin_activate() {
}

register_activation_hook( __FILE__, 'bs_plugin_activate' );

/* Deactivate plugin */
function bs_plugin_deactivate() {
}

register_deactivation_hook( __FILE__, 'bs_plugin_deactivate' );

if(!function_exists('dump'))
{
	function dump($obj)
	{
	   echo '<pre>';
	   print_r($obj);
	   echo '</pre>';
	}
}